package cii_lib;

public class CCII_ACCESS_RC extends CCII_ACCESS_RO {
  private CCII_TABLE_INDEX TablePar;
  public  CCII_ACCESS_RC(CCII_TABLE_INDEX itab, CCII_INTERFACE interf, CCII_COMPONENT comp, CCII_TABLE_INDEX itabpar) {super(itab, interf, comp); TablePar=itabpar;};
  public  boolean ReadTest(int num, int grp, CIIdata data)  {
    super.Read(num,grp,data);
    return(data.GetValue()==TablePar.GetItem(grp*TablePar.GetItem().Number+num).ParIntVal);
  }
  public  boolean ReadTest(int num, CIIdata data) { return(ReadTest(num, 0, data)); } 
  public  boolean ReadTest(         CIIdata data) { return(ReadTest(  0, 0, data)); } 
}
